@layout("/common/_container.html"){
<div class="layui-card">
<div class="layui-card-body">
<div class="layui-form form-board" lay-filter="layuiadmin-form-useradmin" id="layuiadmin-form-useradmin">
@for(bill in billList){
<input type="hidden" id="id" name="billId" value="${bill.billId}">
<input type="hidden" id="orderId" name="orderId" value="${bill.orderId}">
 <div class="layui-form-item">
    <div class="layui-inline">
      <label class="layui-form-label">发票金额</label>
      <div class="layui-input-inline">
      	<div class="layui-form-mid">${bill.orderPrice}</div>
      </div>
    </div>
    <div class="layui-inline">
      <label class="layui-form-label">发票状态</label>
      <div class="layui-input-inline">
      	<div class="layui-form-mid">${bill.billStatas}</div>
      </div>
    </div>
  </div>
 <div class="layui-form-item">
    <div class="layui-inline">
      <label class="layui-form-label">纳税登记号</label>
      <div class="layui-input-inline">
      	<div class="layui-form-mid">${bill.payTaxes}</div>
      </div>
    </div>
    <div class="layui-inline">
      <label class="layui-form-label">发票抬头</label>
      <div class="layui-input-inline">
      	<div class="layui-form-mid">${bill.billTitle}</div>
      </div>
    </div>
  </div>
 <div class="layui-form-item">
    <div class="layui-inline">
      <label class="layui-form-label">营业地址</label>
      <div class="layui-input-inline">
      	<div class="layui-form-mid">${bill.province} ${bill.city} ${bill.area} ${bill.address}</div>
      </div>
    </div>
  	 <div class="layui-inline">
      <label class="layui-form-label">发票类型</label>
      <div class="layui-input-inline">
      <div class="layui-form-mid">${bill.billType}</div>
      </div>
    </div>
  </div>
 <div class="layui-form-item">
    <div class="layui-inline">
      <label class="layui-form-label">公司电话</label>
      <div class="layui-input-inline">
      <div class="layui-form-mid">${bill.legalPersonPhone}</div>
      </div>
    </div>
    <div class="layui-inline">
      <label class="layui-form-label">申请时间</label>
      <div class="layui-input-inline">
      	<div class="layui-form-mid">${bill.createTime}</div>
      </div>
    </div>
  </div>
 <div class="layui-form-item">
    <div class="layui-inline">
      <label class="layui-form-label">电子邮箱</label>
      <div class="layui-input-inline">
      	<div class="layui-form-mid">${bill.linkEmail}</div>
      </div>
    </div>
    <div class="layui-inline">
      <label class="layui-form-label">开具类型</label>
      <div class="layui-input-inline">
      	<div class="layui-form-mid">${bill.opererType}</div>
      </div>
    </div>
  </div>
 <div class="layui-form-item">
    <div class="layui-inline">
      <label class="layui-form-label">银行账号</label>
      <div class="layui-input-inline">
      	<div class="layui-form-mid">${bill.blankCard}</div>
      </div>
    </div>
  </div>
  <div class="layui-form-item">
  	<div class="layui-inline">
  		<label class="layui-form-label">申请操作</label>
  		<div class="layui-input-inline">
  			<input type="radio" name="billState" value="2"  title="开具发票"  lay-filter="billState" checked/>
  			<input type="radio" name="billState" value="3"  title="驳回"  lay-filter="billState"/>
  		</div>
  	</div>
  </div>
  <div id="whenAgree">
 	<div class="layui-form-item">
    	<div class="layui-inline">
      	<label class="layui-form-label">发票编号</label>
      	<div class="layui-input-inline">
        	<input type="text" name="billNo" id="billNo" autocomplete="off" class="layui-input">
      </div>
        </div>
   </div>
    <div class="layui-form-item">
    	<div class="layui-inline">
    		<label class="layui-form-label">开票代码</label>
    		<div class="layui-input-inline">
    		<input type="text" name="billCode" id="billCode" autocomplete="off" class="layui-input">
    	</div>
    </div>
   </div>
    <div class="layui-form-item">
   	 <div class="layui-inline">
    	<label class="layui-form-label">发票备注</label>
   		 <div class="layui-input-inline">
    		<input type="text" name="billDesc" id="billDesc" autocomplete="off" class="layui-input">
    	</div>
  </div>
  </div>
</div>
 <div class="layui-form-item" style="display:none;" id="reject_reason">
    <div class="layui-inline">
      <label class="layui-form-label">驳回理由</label>
      <div class="layui-input-inline" style="width:500px">
        <textarea name="rejectReason" id="rejectReason"  autocomplete="off"  placeholder="请填写驳回理由" class="layui-textarea"></textarea>
      </div>
    </div>
  </div>
@}
  <div class="layui-form-item layui-hide">
    <input type="button" lay-submit lay-filter="bill-submit" id="bill-submit" value="确认">
  </div>
</div>
</div>
</div>


<script>
  layui.config({
	 base: Feng.ctxPath + '/static/layuiadmin/' //静态资源所在路径
  }).extend({
    index: 'lib/index' //主入口模块
  }).use(['index', 'form','laydate'], function(){
    var $ = layui.$
    ,form = layui.form
    ,laydate = layui.laydate;
    form.on('radio(billState)',function(data){
    	if(data.value==2){
    		$("#whenAgree").show();
    		$("#reject_reason").hide();
    		$("#rejectReason").removeAttr("lay-verify"); 
    	}else{
    		$("#whenAgree").hide();
    		$("#reject_reason").show();
    		$("#rejectReason").attr("lay-verify","required");
    	}
    })
    
  })
  </script>
@}

